#include "..\\STM32Lib\\stm32f10x.h"
#include "..\\UCOSII\\ucos_ii.h"
#include "can.h"
#include "mastermain.h"

OS_STK MasterCpuCommTaskStk[128];
#define MASTERMESSAGESIZE 20
void *pMsgGrp[MASTERMESSAGESIZE];

stMaster MasterCpu;

static void MasterInit(void)
{
	MasterCpu.MasterEvent = OSQCreate(pMsgGrp,MASTERMESSAGESIZE);
	CAN_Config();	
}

void MasterCpuCommTask(void *p_arg)
{
	MasterInit();
	
	for(;;)
	{
		OSTimeDly(OS_TICKS_PER_SEC/10);
	}
}

